package com.alliky.home.mvp.contract

import com.alliky.common.entity.BannerEntity
import com.alliky.common.entity.BaseResponse
import com.alliky.common.entity.vo.BannerEntityInfo
import com.alliky.core.base.IModel
import com.alliky.core.base.IPresenter
import com.alliky.core.base.IView
import io.reactivex.Observable

/**
 * @Author: wxianing
 * @CreateDate: 2022/2/22 21:23
 * @Description: java类作用描述
 */
interface HomeContract {
    interface View : IView {
        fun showBanner(list: List<BannerEntityInfo?>?)
    }

    interface Presenter : IPresenter<View> {
        fun getBanner(type: Int)
    }

    interface Model : IModel {
        fun getBanner(type: Int): Observable<BaseResponse<List<BannerEntity>>>
    }
}